package com.uusee.shipshape.bk.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;
import org.hibernate.annotations.Type;

@Entity
@Table(name = "ss_bk_episode")
@Proxy(lazy = false)
@SequenceGenerator(name = "episode_sq", sequenceName = "ss_bk_episode_sq", allocationSize = 1)
public class Episode implements Serializable {
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "episode_sq")
	private long id;
	@ManyToOne(cascade = { CascadeType.PERSIST }, optional = false)
	@JoinColumn(name = "baike_id")
	private Baike baike;
	private String name;
	private String name2;
	private Integer season;
	private Integer volumn;
	@Type(type = "org.springframework.orm.hibernate3.support.ClobStringType")
	private String summary;
	@Column(name = "update_user")
	private String updateUser;
	@Column(name = "update_date")
	private Date updateDate;
	
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public Baike getBaike() {
		return baike;
	}
	public void setBaike(Baike baike) {
		this.baike = baike;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName2() {
		return name2;
	}
	public void setName2(String name2) {
		this.name2 = name2;
	}
	public Integer getSeason() {
		return season;
	}
	public void setSeason(Integer season) {
		this.season = season;
	}
	public Integer getVolumn() {
		return volumn;
	}
	public void setVolumn(Integer volumn) {
		this.volumn = volumn;
	}
	public String getSummary() {
		return summary;
	}
	public void setSummary(String summary) {
		this.summary = summary;
	}
	public String getUpdateUser() {
		return updateUser;
	}
	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
}
